package com.zhihuishu.micro.course.service;

import com.zhihuishu.micro.course.dto.LessonVideoDto;
import com.zhihuishu.micro.course.model.LessonVideo;
import com.zhihuishu.micro.course.model.LessonVideoCount;

/**
 * @author jiangli
 */
public interface LessonVideoTreenityDBService extends TreenityBatchDBService<LessonVideoDto,LessonVideo> {
    /**
     * 根据lessonVideoId 获得 lessonId 节id，及节下当前视频数
     * @param lessonVideoId
     * @return
     */
    LessonVideoCount countLvsAndGetLessonId(long lessonVideoId);

    LessonVideo selectFirstVideoInfo(long lessonId);
}
